<template>
  <CloudPopover v-model="visible" title="Title" trigger="click">
    <div slot="content" @click="hide">Close</div>
    <CloudButton> Click me </CloudButton>
  </CloudPopover>
</template>

<script>
  export default {
    title: '2.从浮层内关闭 ',
    subTitle: '使用 visible 属性控制浮层显示。',
    data () {
      return {
        visible: false,
      }
    },
    methods: {
      hide () {
        console.log(111);

        this.visible = false;
      },
    }
  }
</script>

<style lang="scss">
</style>